home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / lcppb.zip / LCPP08.ZIP / MAKEC08 < prev    next >
Text File  |  1991-07-08  |  3KB  |  124 lines

  1. #-----------------------------------------------------------------------------
  2. #
  3. # LEARNING C++ (for Borland C++ 2.0)
  4. #
  5. # by Tom Swan
  6. #
  7. # MAKEC08 -- Make file for chapter 8
  8. #
  9. # To compile all programs, make sure C:\BC\BIN is in your
  10. # system path (replace C: with the drive letter where you
  11. # installed Borland C++.) Then enter 
  12. #
  13. #   MAKE -fMAKEC08
  14. #
  15. # Copyright (c) 1991 by Tom Swan. All rights reserved.
  16. #
  17. #-----------------------------------------------------------------------------
  18.  
  19. # IMPORTANT:
  20. # If files DISP.H and DISP.OBJ are not stored in
  21. # \lcppb\lib, change the path in the following definition
  22. # to the location of the two files. Do not end the path
  23. # with a backslash.
  24.  
  25. lib=\lcppb\lib
  26.  
  27.  
  28. # Library and include-file macros. If you change the library
  29. # file name, you'll have to change it in every MAKE file.
  30.  
  31. library=$(lib)\lcpp.lib
  32. include=$(lib)
  33.  
  34.  
  35. # OPTION:
  36. # To examine programs with Turbo Debugger, remove the
  37. # leading # from the beginning of the following command. This
  38. # will increase disk consumption drastically, so you'll
  39. # normally leave the line as is.
  40.  
  41. #debugging = 1
  42.  
  43. # Note: If you change the debugging symbol, delete all .OBJ  
  44. # and .EXE files before remaking.
  45.  
  46.  
  47. # These statements create appropriate macros based on the
  48. # setting of the debugging symbol above. The -v option adds
  49. # debugging information to compiled programs.  
  50.  
  51. !if $d(debugging)
  52. compile=bcc -c -v -I$(include) $(library)
  53. link=bcc -v -I$(include) $(library)
  54. !else
  55. compile=bcc -c -I$(include) $(library)
  56. link=bcc -I$(include) $(library)
  57. !endif
  58.  
  59.  
  60. # --  Force MAKE to recognize various dependencies
  61.  
  62. depends: \
  63. allrecdb.exe cdir.exe free.exe fsize.exe makedb.exe \
  64. maketxt.exe nav.exe rdata.exe read.exe readdb.exe \
  65. readln.exe readtxt.exe sdir.exe sorttxt.exe tdir.exe \
  66. touch.exe wdata.exe
  67.  
  68.  
  69. # -- Compile executable programs and other modules
  70.  
  71. allrecdb.exe: allrecdb.cpp sample.h
  72.  $(link) allrecdb
  73.  
  74. cdir.exe: cdir.cpp
  75.  $(link) cdir
  76.  
  77. free.exe: free.cpp
  78.  $(link) free
  79.  
  80. fsize.exe: fsize.cpp
  81.  $(link) fsize
  82.  
  83. makedb.exe: makedb.cpp sample.h
  84.  $(link) makedb
  85.  
  86. maketxt.exe: maketxt.cpp
  87.  $(link) maketxt
  88.  
  89. dir.obj: dir.cpp dir.h
  90.  $(compile) dir
  91.  
  92. rdata.exe: rdata.cpp
  93.  $(link) rdata
  94.  
  95. readdb.exe: readdb.cpp sample.h
  96.  $(link) readdb
  97.  
  98. readln.exe: readln.cpp
  99.  $(link) readln
  100.  
  101. readtxt.exe: readtxt.cpp
  102.  $(link) readtxt
  103.  
  104. sdir.exe: sdir.cpp
  105.  $(link) sdir
  106.  
  107. sorttxt.exe: sorttxt.cpp
  108.  $(link) sorttxt
  109.  
  110. touch.exe: touch.cpp
  111.  $(link) touch
  112.  
  113. wdata.exe: wdata.cpp
  114.  $(link) wdata
  115.  
  116. nav.exe: nav.cpp dir.obj
  117.  $(link) nav dir.obj
  118.  
  119. read.exe: read.cpp dir.obj
  120.  $(link) read dir.obj
  121.  
  122. tdir.exe: tdir.cpp dir.obj
  123.  $(link) tdir dir.obj
  124.